// pages/help/help.js
let app = getApp()

Page({

  /**
   * 页面的初始数据
   */
  data: {
    statusBarHeight: app.globalData.statusBarHeight,
    screenHeight: app.globalData.screenHeight,
    telephoneList:[
      "客服电话：0311-85118730",
      "商务合作: 136-9138-2731"
    ],
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
  
  },
  toPage(e) {
    let url = e.currentTarget.dataset.url
    wx.navigateTo({
      url: url
    })
  },
  /**
   * 联系客服
   */
  showDialDialog() {
    this.setData({
      dialDialog: true
    })
  },
  /**
   * 关闭联系客服弹窗
   */
  hiddenDialDialog() {
    this.setData({
      dialDialog: false
    })
  },
  /**
   * 拨打电话
   */
  callPhone(e) {
    let phone = e.target.dataset.val;
    wx.makePhoneCall({
      phoneNumber: phone,
    }).catch((e)=>{
      // console.log(e) 
    })
    this.hiddenDialDialog()
  },

  goArgument(e) {
    let type = e.currentTarget.dataset.type
    wx.navigateTo({
      url: '/pages/licencePlate/privacyAgreement/privacyAgreement?type=' + type,
    })
  }
})